package diaosidadui.test;

public class Demo01 {
    public static void main(String[] args) {
        int a = 1, b = 3, c = 5;
        int max1 = a < b ? b : a;
        max1 = max1 > c ? max1 : c;
        System.out.println(max1);

        System.out.println("--------------");
        int d = 1, e = 3, f = 5;
//        int max2 = d < e ? e : d;
        int max2 = d < e ? e : d < f ? f : d < e ? e : d;
        System.out.println(max2);

        System.out.println("--------------");


    }


}
